<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: MethodFacts.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_method_facts_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">MethodFacts.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_method_facts_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Text;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using</span> System.Reactive;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using</span> System.Reactive.Subjects;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">using</span> System.Reflection;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">using</span> SDILReader;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">using</span> System.Reactive.Linq;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">using</span> SystemSharp.Collections;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">using</span> SystemSharp.Common;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">using</span> SystemSharp.Analysis.Msil;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">using</span> System.Diagnostics.Contracts;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">using</span> System.Security;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">using</span> SystemSharp.Components;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span>SystemSharp.Analysis</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html">   41</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html">MethodFacts</a></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    {</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4a8c2eace5839276a7b4923a93367dfa">   46</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_fact_universe.html">FactUniverse</a> Universe { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ae11398f9fd13f5d0758ce2a9dd15514f">   51</a></span>&#160;        <span class="keyword">public</span> MethodBase Method { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">bool</span> OnNewMethodCalled { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsUnsafe</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#aac3d1d04d1700fdda8facfe4e829ab59">   59</a></span>&#160;        {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> Attribute.IsDefined(Method.Module, typeof(UnverifiableCodeAttribute)); }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsDecompilable</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a9fec30a3c8f3ce2b9c89bd45372d14c2">   68</a></span>&#160;        {</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            {</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                <span class="keywordflow">return</span> !IsUnsafe &amp;&amp;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                    !Method.HasCustomOrInjectedAttribute(typeof(<a class="code" href="interface_system_sharp_1_1_components_1_1_i_do_not_analyze.html">IDoNotAnalyze</a>)) &amp;&amp;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                    Method.GetMethodBody() != null;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            }</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keyword">private</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_code.html">MethodCode</a> _cfg;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_code.html">MethodCode</a> CFG</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a469f1f7b6e9cedda870c974e2bbb4443">   83</a></span>&#160;        {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                <span class="keywordflow">if</span> (_cfg == null)</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                    _cfg = MethodCode.Create(Method);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                <span class="keywordflow">return</span> _cfg;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keyword">private</span> DataflowAnalyzer&lt;ILInstruction&gt; _dfa;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keyword">public</span> DataflowAnalyzer&lt;ILInstruction&gt; DFA</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ae8efd4ba646d04edec0a21ce209e5253">   98</a></span>&#160;        {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                <span class="keywordflow">if</span> (_dfa == null)</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                    _dfa = <span class="keyword">new</span> DataflowAnalyzer&lt;ILInstruction&gt;(CFG, CFG.NumLocals);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;                    _dfa.Run();</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                }</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">return</span> _dfa;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="keyword">private</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_invocation_analyzer.html">InvocationAnalyzer</a> _inva;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_invocation_analyzer.html">InvocationAnalyzer</a> INVA</div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4decdf1c36b29136448293b31642c813">  116</a></span>&#160;        {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                <span class="keywordflow">if</span> (_inva == null)</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                {</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                    _inva = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_invocation_analyzer.html">InvocationAnalyzer</a>(Method);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                    _readFields = _inva.ReadFields.ToBufferedEnumerable();</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;                    _writtenFields = _inva.WrittenFields.ToBufferedEnumerable();</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                    _referencedFields = _inva.ReferencedFields.ToBufferedEnumerable();</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;                    _referencedTypes = _inva.ReferencedTypes.ToBufferedEnumerable();</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;                    _mutations = _inva.Mutations.ToBufferedEnumerable();</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                    _calledMethods = _inva.CalledMethods.Select(cs =&gt; cs.Callee).ToBufferedEnumerable();</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;                    _constructedObjects = _inva.ConstructedObjects.ToBufferedEnumerable();</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                    _constructedArrays = _inva.ConstructedArrays.ToBufferedEnumerable();</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                    _localMutations = _inva.LocalMutations.ToMultiMap(m =&gt; m.ILIndex, m =&gt; m);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                    _inva.Equivalences</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                        .Where(tup =&gt; tup.Item1 is <a class="code" href="interface_system_sharp_1_1_analysis_1_1_i_resolvable_source.html">IResolvableSource</a>)</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                        .AutoDo(tup =&gt; ((<a class="code" href="interface_system_sharp_1_1_analysis_1_1_i_resolvable_source.html">IResolvableSource</a>)tup.Item1).Register(tup.Item2));</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                }</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                <span class="keywordflow">return</span> _inva;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            }</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        }</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;FieldInfo&gt; _readFields;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;FieldInfo&gt; ReadFields </div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a3dca32af5eb2eed7938e3c34dd98468b">  145</a></span>&#160;        {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                Contract.Requires&lt;InvalidOperationException&gt;(Universe.IsCompleted, FactUniverse.UniverseCompletedErrorMsg);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                <span class="keywordflow">return</span> _readFields;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        }</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;FieldInfo&gt; _writtenFields;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;FieldInfo&gt; WrittenFields </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a2c94b042f7d449e9319e80360d4c9f86">  159</a></span>&#160;        {</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;                Contract.Requires&lt;InvalidOperationException&gt;(Universe.IsCompleted, FactUniverse.UniverseCompletedErrorMsg);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;                <span class="keywordflow">return</span> _writtenFields;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;FieldInfo&gt; _referencedFields;</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;Type&gt; _referencedTypes;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;ElementMutation&gt; _mutations;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;ElementMutation&gt; Mutations</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#af0d65cf384a81ea094e62d4065934a1f">  176</a></span>&#160;        {</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            {</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                Contract.Requires&lt;InvalidOperationException&gt;(Universe.IsCompleted, FactUniverse.UniverseCompletedErrorMsg);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                <span class="keywordflow">return</span> _mutations;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        }</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#acfc84813b8145eb2e1c3bd3b8cea20e6">  187</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsMutator { <span class="keyword">get</span> { <span class="keywordflow">return</span> Mutations.Count() &gt; 0; } }</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad730e0d5ee44f515b828cf592710e855">  192</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsIndirectMutator { <span class="keyword">get</span>; <span class="keyword">internal</span> set; }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;MethodBase&gt; _calledMethods;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;MethodBase&gt; CalledMethods </div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a97b5ecbc804f1c0e24c2f9745bddbea5">  200</a></span>&#160;        {</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;            {</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                Contract.Requires&lt;InvalidOperationException&gt;(Universe.IsCompleted, FactUniverse.UniverseCompletedErrorMsg);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;                <span class="keywordflow">return</span> _calledMethods;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        }</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;MethodBase&gt; CalledRealizations</div>
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a690cff39e8e58d42dc48c58aae5f5c3f">  213</a></span>&#160;        {</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> CalledMethods.SelectMany(m =&gt; Universe.GetFacts(m).Realizations); }</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        }</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;MethodBase&gt; _callers;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;MethodBase&gt; CallingMethods</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a2168c66a58b4f19b8941bb17ca31ef32">  223</a></span>&#160;        {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            {</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;                Contract.Requires&lt;InvalidOperationException&gt;(Universe.IsCompleted, FactUniverse.UniverseCompletedErrorMsg);</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                <span class="keywordflow">if</span> (_callers == null)</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                {</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                    _callers = Universe.KnownMethodBases</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                        .Where(mf =&gt; mf.CalledRealizations</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                            .Contains(Method))</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                        .Select(mf =&gt; mf.Method)</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                        .ToEnumerable();</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                }</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                <span class="keywordflow">return</span> _callers;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;            }</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        }</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;ConstructorInfo&gt; _constructedObjects;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <span class="keyword">public</span> IEnumerable&lt;ConstructorInfo&gt; ConstructedObjects</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a700f047a1e12602db94f86eb48b6427d">  245</a></span>&#160;        {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;            <span class="keyword">get</span></div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                Contract.Requires&lt;InvalidOperationException&gt;(Universe.IsCompleted, FactUniverse.UniverseCompletedErrorMsg);</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                <span class="keywordflow">return</span> _constructedObjects;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            }</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keyword">private</span> IEnumerable&lt;Type&gt; _constructedArrays;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a43d3c302ad02b8d1177a48ac197e5c6b">  262</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;MethodBase&gt; Realizations { <span class="keyword">get</span>; <span class="keyword">internal</span> set; }</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div>
<div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a8f72a1a32963908a526472498cb306dc">  267</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">int</span> CallOrder { <span class="keyword">get</span>; <span class="keyword">internal</span> set; }</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ae90965b13ffc7c1c5dfceeedc2218ce4">  272</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsRecursive { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">bool</span> Visited { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">bool</span> InDFS { <span class="keyword">get</span>; set; }</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        <span class="keyword">private</span> ObservingMultiMap&lt;ParameterInfo, ElementSource&gt; _argumentCandidates;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keyword">private</span> ObservingMultiMap&lt;ParameterInfo, ElementSource&gt; _argumentReturnCandidates;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <span class="keyword">private</span> HashSet&lt;ElementSource&gt; _thisCandidates;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;        <span class="keyword">private</span> HashSet&lt;ElementSource&gt; _returnCandidates;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> RegisterArgumentCandidates(ParameterInfo arg, IEnumerable&lt;ElementSource&gt; sources)</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;        {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            <span class="keywordflow">if</span> (_argumentCandidates == null)</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                _argumentCandidates = <span class="keyword">new</span> ObservingMultiMap&lt;ParameterInfo, ElementSource&gt;();</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;            _argumentCandidates.Add(arg, sources);</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;        }</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> RegisterArgumentReturnCandidates(ParameterInfo arg, IEnumerable&lt;ElementSource&gt; sources)</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        {</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            <span class="keywordflow">if</span> (_argumentReturnCandidates == null)</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                _argumentReturnCandidates = <span class="keyword">new</span> ObservingMultiMap&lt;ParameterInfo, ElementSource&gt;();</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            _argumentReturnCandidates.Add(arg, sources);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        }</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad075e40ce1fac06112b07eef0636df08">  310</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;ElementSource&gt; <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad075e40ce1fac06112b07eef0636df08">GetArgumentCandidates</a>(ParameterInfo arg)</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        {            </div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            <span class="keywordflow">return</span> _argumentCandidates == null ? Enumerable.Empty&lt;<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_source.html">ElementSource</a>&gt;() : _argumentCandidates[arg];</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        }</div>
<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4defac04780e5a8c789d4bbb2982bee5">  319</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;ElementSource&gt; <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4defac04780e5a8c789d4bbb2982bee5">GetArgumentReturnCandidates</a>(ParameterInfo arg)</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            <span class="keywordflow">return</span> _argumentReturnCandidates == null ? Enumerable.Empty&lt;<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_source.html">ElementSource</a>&gt;() : _argumentReturnCandidates[arg];</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        }</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> RegisterThisCandidate(<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_source.html">ElementSource</a> source)</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            <span class="keywordflow">if</span> (_thisCandidates == null)</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                _thisCandidates = <span class="keyword">new</span> HashSet&lt;ElementSource&gt;();</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            _thisCandidates.Add(source);</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;        }</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> RegisterThisCandidates(IEnumerable&lt;ElementSource&gt; sources)</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        {</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;            <span class="keywordflow">if</span> (_thisCandidates == null)</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                _thisCandidates = <span class="keyword">new</span> HashSet&lt;ElementSource&gt;();</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;            <span class="keywordflow">foreach</span> (ElementSource source <span class="keywordflow">in</span> sources)</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                _thisCandidates.Add(source);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;        }</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;</div>
<div class="line"><a name="l00345"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ae0b797b1333d8c0a7b28184e4a083f04">  345</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;ElementSource&gt; <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ae0b797b1333d8c0a7b28184e4a083f04">GetThisCandidates</a>()</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;            <span class="keywordflow">return</span> _thisCandidates == null ? Enumerable.Empty&lt;<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_source.html">ElementSource</a>&gt;() : _thisCandidates.AsEnumerable();</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        }</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        <span class="keyword">internal</span> <span class="keywordtype">void</span> RegisterReturnCandidates(IEnumerable&lt;ElementSource&gt; sources)</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        {</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;            <span class="keywordflow">if</span> (_returnCandidates == null)</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;                _returnCandidates = <span class="keyword">new</span> HashSet&lt;ElementSource&gt;();</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            <span class="keywordflow">foreach</span> (<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_source.html">ElementSource</a> source <span class="keywordflow">in</span> sources)</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                _returnCandidates.Add(source);</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        }</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;</div>
<div class="line"><a name="l00363"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad4682e32c26331d23a435ebe3b2548bc">  363</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;ElementSource&gt; <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad4682e32c26331d23a435ebe3b2548bc">GetReturnCandidates</a>()</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        {</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;            <span class="keywordflow">return</span> _returnCandidates == null ? Enumerable.Empty&lt;<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_source.html">ElementSource</a>&gt;() : _returnCandidates.AsEnumerable();</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        }</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;</div>
<div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a06838679d8cc44bfb4a91c86e0830b79">  374</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;int&gt; <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a06838679d8cc44bfb4a91c86e0830b79">GetStackElementDefinitions</a>(<span class="keywordtype">int</span> ilIndex, <span class="keywordtype">int</span> stackLevel)</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        {</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            <span class="keywordflow">return</span> StackInfluenceAnalysis.GetStackElementDefinitions(ilIndex, stackLevel, CFG);</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        }</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        <span class="keyword">private</span> Dictionary&lt;int, HashSet&lt;LocalMutation&gt;&gt; _localMutations;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        </div>
<div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a80f2f0e9224163dc9bc34f2bc8376baa">  386</a></span>&#160;        <span class="keyword">public</span> IEnumerable&lt;LocalMutation&gt; <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a80f2f0e9224163dc9bc34f2bc8376baa">GetLocalMutations</a>(<span class="keywordtype">int</span> ilIndex)</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        {</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            <span class="keywordflow">return</span> _localMutations.Get(ilIndex);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        }</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <span class="keyword">private</span> Dictionary&lt;VariabilityPattern, VariabilityAnalyzer&gt; _varaMap =</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <span class="keyword">new</span> Dictionary&lt;VariabilityPattern, VariabilityAnalyzer&gt;();</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;</div>
<div class="line"><a name="l00399"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4f25eb2f746982c009276b8cbd24cebf">  399</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_analyzer.html">VariabilityAnalyzer</a> <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4f25eb2f746982c009276b8cbd24cebf">GetVARA</a>(<a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_pattern.html">VariabilityPattern</a> varPattern)</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;        {</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;            <a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_analyzer.html">VariabilityAnalyzer</a> result;</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;            <span class="keywordflow">if</span> (!_varaMap.TryGetValue(varPattern, out result))</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;            {</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                result = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_analyzer.html">VariabilityAnalyzer</a>(Method, varPattern);</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;                result.Run();</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;                _varaMap[varPattern] = result;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;            }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;            <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        }</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsSideEffectFree</div>
<div class="line"><a name="l00415"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a1a7059685dbc0ba14346710640d2aa53">  415</a></span>&#160;        {</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> Method.GetCustomOrInjectedAttribute(typeof(<a class="code" href="interface_system_sharp_1_1_components_1_1_i_side_effect_free.html">ISideEffectFree</a>)) != null; }</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        }</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;        <span class="keyword">public</span> <span class="keywordtype">bool</span> IsStaticEvaluation</div>
<div class="line"><a name="l00423"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#aa9a1580905c44e86b23eb38418ca7a0c">  423</a></span>&#160;        {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;            <span class="keyword">get</span> { <span class="keywordflow">return</span> Method.GetCustomOrInjectedAttribute(typeof(<a class="code" href="class_system_sharp_1_1_components_1_1_static_evaluation.html">StaticEvaluation</a>)) != null; }</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div>
<div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a34680226264a63b30fb0e2a723c7d895">  430</a></span>&#160;        <span class="keyword">public</span> List&lt;int&gt; UnrollHeaders { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;</div>
<div class="line"><a name="l00435"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4a17b8453592ffa299daa33cdf17cbc2">  435</a></span>&#160;        <span class="keyword">public</span> List&lt;int&gt; NonUnrollHeaders { <span class="keyword">get</span>; <span class="keyword">private</span> set; }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_system_sharp_1_1_analysis_1_1_method_facts.html">MethodFacts</a>(<a class="code" href="class_system_sharp_1_1_analysis_1_1_fact_universe.html">FactUniverse</a> facts, MethodBase method)</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;        {</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;            Universe = facts;</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;            Method = method;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;            _calledMethods = Enumerable.Empty&lt;MethodBase&gt;();</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;            _constructedArrays = Enumerable.Empty&lt;Type&gt;();</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            _constructedObjects = Enumerable.Empty&lt;ConstructorInfo&gt;();</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;            _mutations = Enumerable.Empty&lt;<a class="code" href="class_system_sharp_1_1_analysis_1_1_element_mutation.html">ElementMutation</a>&gt;();</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;            _readFields = Enumerable.Empty&lt;FieldInfo&gt;();</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;            _referencedFields = Enumerable.Empty&lt;FieldInfo&gt;();</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;            _referencedTypes = Enumerable.Empty&lt;Type&gt;();</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;            _writtenFields = Enumerable.Empty&lt;FieldInfo&gt;();</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;            Realizations = Enumerable.Empty&lt;MethodBase&gt;();</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;            UnrollHeaders = <span class="keyword">new</span> List&lt;int&gt;();</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;            NonUnrollHeaders = <span class="keyword">new</span> List&lt;int&gt;();</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;        }</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    }</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;}</div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_ad075e40ce1fac06112b07eef0636df08"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad075e40ce1fac06112b07eef0636df08">SystemSharp.Analysis.MethodFacts.GetArgumentCandidates</a></div><div class="ttdeci">IEnumerable&lt; ElementSource &gt; GetArgumentCandidates(ParameterInfo arg)</div><div class="ttdoc">Returns all possible contents of a particular argument upon method entry </div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00310">MethodFacts.cs:310</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_element_source_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_element_source.html">SystemSharp.Analysis.ElementSource</a></div><div class="ttdoc">This base class is intended as a symbolic abstraction of any data item. As opposed to SysDOM expressi...</div><div class="ttdef"><b>Definition:</b> <a href="_sources_and_mutations_8cs_source.html#l00046">SourcesAndMutations.cs:46</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_ae0b797b1333d8c0a7b28184e4a083f04"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ae0b797b1333d8c0a7b28184e4a083f04">SystemSharp.Analysis.MethodFacts.GetThisCandidates</a></div><div class="ttdeci">IEnumerable&lt; ElementSource &gt; GetThisCandidates()</div><div class="ttdoc">Returns all possible instances on which this method might be called </div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00345">MethodFacts.cs:345</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_analyzer_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_analyzer.html">SystemSharp.Analysis.Msil.VariabilityAnalyzer</a></div><div class="ttdoc">This class analyzes the variabilities of stack elements and local variables of a given method...</div><div class="ttdef"><b>Definition:</b> <a href="_variability_analysis_8cs_source.html#l00340">VariabilityAnalysis.cs:340</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_msil_1_1_invocation_analyzer_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_msil_1_1_invocation_analyzer.html">SystemSharp.Analysis.Msil.InvocationAnalyzer</a></div><div class="ttdoc">Implements a rather comprehensive static program analysis for determining which fields and local vari...</div><div class="ttdef"><b>Definition:</b> <a href="_invocation_analysis_8cs_source.html#l00199">InvocationAnalysis.cs:199</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_fact_universe_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_fact_universe.html">SystemSharp.Analysis.FactUniverse</a></div><div class="ttdoc">This class captures information on all relevant objects discovered during analysis, i.e. types, instantiated classes, called methods, and memory allocations. </div><div class="ttdef"><b>Definition:</b> <a href="_fact_universe_8cs_source.html#l00157">FactUniverse.cs:157</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_static_evaluation_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_static_evaluation.html">SystemSharp.Components.StaticEvaluation</a></div><div class="ttdoc">This attribute declares a method to be suitable for static evaluation. Non-void methods only...</div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l00703">ComponentsAttributes.cs:703</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_code_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_code.html">SystemSharp.Analysis.MethodCode</a></div><div class="ttdoc">A control-flow graph specialization for CLI methods </div><div class="ttdef"><b>Definition:</b> <a href="_m_s_i_l_analysis_8cs_source.html#l00487">MSILAnalysis.cs:487</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_ad4682e32c26331d23a435ebe3b2548bc"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#ad4682e32c26331d23a435ebe3b2548bc">SystemSharp.Analysis.MethodFacts.GetReturnCandidates</a></div><div class="ttdeci">IEnumerable&lt; ElementSource &gt; GetReturnCandidates()</div><div class="ttdoc">Returns all possible objects this method might return </div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00363">MethodFacts.cs:363</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_a4f25eb2f746982c009276b8cbd24cebf"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4f25eb2f746982c009276b8cbd24cebf">SystemSharp.Analysis.MethodFacts.GetVARA</a></div><div class="ttdeci">VariabilityAnalyzer GetVARA(VariabilityPattern varPattern)</div><div class="ttdoc">Returns a variability analyzer for certain argument variabilities </div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00399">MethodFacts.cs:399</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html">SystemSharp.Analysis.MethodFacts</a></div><div class="ttdoc">This class provides analysis information on methods and constructors. </div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00041">MethodFacts.cs:41</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_element_mutation_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_element_mutation.html">SystemSharp.Analysis.ElementMutation</a></div><div class="ttdoc">Abstract base class for describing data modifications </div><div class="ttdef"><b>Definition:</b> <a href="_sources_and_mutations_8cs_source.html#l01536">SourcesAndMutations.cs:1536</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_i_do_not_analyze_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_i_do_not_analyze.html">SystemSharp.Components.IDoNotAnalyze</a></div><div class="ttdoc">Marker interface for methods which must not be included into system analysis. </div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l01234">ComponentsAttributes.cs:1234</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_a06838679d8cc44bfb4a91c86e0830b79"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a06838679d8cc44bfb4a91c86e0830b79">SystemSharp.Analysis.MethodFacts.GetStackElementDefinitions</a></div><div class="ttdeci">IEnumerable&lt; int &gt; GetStackElementDefinitions(int ilIndex, int stackLevel)</div><div class="ttdoc">Returns all instructions which might define a stack element at a certain program location ...</div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00374">MethodFacts.cs:374</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_analysis_1_1_i_resolvable_source_html"><div class="ttname"><a href="interface_system_sharp_1_1_analysis_1_1_i_resolvable_source.html">SystemSharp.Analysis.IResolvableSource</a></div><div class="ttdoc">Marks a trackable data item which can be resolved in order to retrieve its possible contents ...</div><div class="ttdef"><b>Definition:</b> <a href="_sources_and_mutations_8cs_source.html#l00152">SourcesAndMutations.cs:152</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_i_side_effect_free_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_i_side_effect_free.html">SystemSharp.Components.ISideEffectFree</a></div><div class="ttdoc">Marker interface to tag methods which are free from side effects. </div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l01217">ComponentsAttributes.cs:1217</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_a80f2f0e9224163dc9bc34f2bc8376baa"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a80f2f0e9224163dc9bc34f2bc8376baa">SystemSharp.Analysis.MethodFacts.GetLocalMutations</a></div><div class="ttdeci">IEnumerable&lt; LocalMutation &gt; GetLocalMutations(int ilIndex)</div><div class="ttdoc">Returns all possible mutations this method performs on local variables at a particular program locati...</div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00386">MethodFacts.cs:386</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_method_facts_html_a4defac04780e5a8c789d4bbb2982bee5"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_method_facts.html#a4defac04780e5a8c789d4bbb2982bee5">SystemSharp.Analysis.MethodFacts.GetArgumentReturnCandidates</a></div><div class="ttdeci">IEnumerable&lt; ElementSource &gt; GetArgumentReturnCandidates(ParameterInfo arg)</div><div class="ttdoc">Returns all possible contents of a particular argument upon method exit </div><div class="ttdef"><b>Definition:</b> <a href="_method_facts_8cs_source.html#l00319">MethodFacts.cs:319</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_pattern_html"><div class="ttname"><a href="class_system_sharp_1_1_analysis_1_1_msil_1_1_variability_pattern.html">SystemSharp.Analysis.Msil.VariabilityPattern</a></div><div class="ttdoc">Represents a sequence of variability classifications </div><div class="ttdef"><b>Definition:</b> <a href="_variability_analysis_8cs_source.html#l00285">VariabilityAnalysis.cs:285</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_d5bda8a155622a5a3d520660116af4c1.html">Analysis</a></li><li class="navelem"><a class="el" href="_method_facts_8cs.html">MethodFacts.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:41 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
